/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.item.controller;

import io.renren.common.utils.Constant;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 系统用户
 *
 * @author Mark sunlightcs@gmail.com
 */
@RestController
@RequestMapping("/item/publish")
public class PublishController extends AbstractController {
//	@Autowired
//	private PublishService publishService;

	/**
	 * 所有项目列表
	 */
	@GetMapping("/list")
	@RequiresPermissions("item:publish:list")
	public R list(@RequestParam Map<String, Object> params){

		if(getUserId() != Constant.SUPER_ADMIN){
			params.put("createUserId", getUserId());
		}
		PageUtils page = null;
//		PageUtils page = sysUserService.queryPage(params);

		return R.ok().put("page", page);
	}
	

}
